<template>
	<view class="box">
		<view class="headbox">
			<view class="toubu">
				<view class="imgbox">
					<image src="../../static/头像.jpg" mode=""></image>
				</view>
				<view class="rightbox">
					<view class="name">
						怎么吃都不胖
					</view>
					<view class="hy">
						口腔行业
					</view>
				</view>
			</view>
			<view class="databox">
				<view class="smallbox">
					<view class="num">
						9800.00<text>金币</text>
					</view>
					<view class="name">
						累计收益
					</view>
				</view>
				<view class="smallbox">
					<view class="num">
						9800.00<text>元</text>
					</view>
					<view class="name">
						累计兑换
					</view>
				</view>
				<view class="smallbox">
					<view class="num">
						9800.00<text>单</text>
					</view>
					<view class="name">
						累计订单
					</view>
				</view>
				<view class="smallbox">
					<view class="num">
						9800.00<text>金币</text>
					</view>
					<view class="name">
						本月收益
					</view>
				</view>
				<view class="smallbox">
					<view class="num">
						9800.00<text>金币</text>
					</view>
					<view class="name">
						今日收益
					</view>
				</view>
			</view>
		</view>
		<view class="navbox">
			<view class="namebox" v-for="(item,index) in navlist" :key="index" @click="navbtn(index)">
				<view :class="current==index ? 'selectname' : 'name'">
					{{item}}
				</view>
				<view class="angle" v-if="index==1"></view>
			</view>
		</view>
		<scroll-view>
			<view class="infobox">
				<view class="jbxx">
					<image src="../../static/头像.jpg" mode=""></image>
					<view class="letfbox">
						<view class="name">
							怎么吃都不胖
						</view>
						<view class="phone">
							15978544125
						</view>
						<view class="time">
							2021-09-03
						</view>
					</view>
				</view>
				<view class="jb">
					+1金币
				</view>
			</view>
		</scroll-view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 导航
				navlist: ["全部订单", "全部区域", "兑换明细"],
				current: 0
			}
		},
		methods: {
			navbtn(v) {
				this.current = v
			}
		}
	}
</script>

<style scoped lang="scss">
	.box {
		background-color: #ffffff;
	}

	.headbox {
		width: 100%;
		height: 430rpx;
		background-image: url("../../static/组17.png");
		background-size: 100% 430rpx;
		padding-top: 40rpx;
		padding-left: 25rpx;
		box-sizing: border-box;

		.toubu {
			display: flex;
			align-items: center;

			.imgbox {
				width: 120rpx;
				height: 120rpx;
				background-color: #ffffff;
				border: solid 2rpx #ffffff;
				border-radius: 120rpx;

				image {
					display: block;
					width: 116rpx;
					height: 116rpx;
					margin: auto;
					border-radius: 116rpx;
				}
			}

			.rightbox {
				margin-left: 30rpx;

				.name {
					font-family: MicrosoftYaHei-Bold;
					font-size: 30rpx;
					color: #fff;
					font-weight: 700;
				}

				.hy {
					padding: 0 2rpx;
					box-sizing: border-box;
					height: 40rpx;
					border-radius: 18rpx;
					border: solid 1rpx #ffffff;
					line-height: 40rpx;
					text-align: center;
					color: #fff;
					margin-top: 20rpx;
				}
			}
		}

		.databox {
			display: flex;
			align-items: center;
			flex-wrap: wrap;

			.smallbox {
				width: 33%;
				text-align: center;
				margin-top: 35rpx;

				.num {
					font-family: MicrosoftYaHei-Bold;
					font-size: 35rpx;
					color: #FFFFFF;
					font-size: 700;

					text {
						font-size: 24rpx;
					}
				}

				.name {
					font-family: MicrosoftYaHei;
					font-size: 22rpx;
					color: #FFFFFF;
					margin-top: 17rpx;
				}
			}
		}
	}

	.navbox {
		display: flex;
		align-items: center;
		justify-content: space-around;
		margin-top: 39rpx;

		.namebox {
			display: flex;
			align-items: center;

			.name {
				font-family: MicrosoftYaHei;
				font-size: 28rpx;
				color: #666666;
			}

			.selectname {
				font-family: MicrosoftYaHei;
				font-size: 28rpx;
				color: #FA6129;
			}

			.angle {
				border-left: 10rpx solid transparent;
				border-right: 10rpx solid transparent;
				border-top: 15rpx solid #bfbfbf;
				margin-left: 10rpx;
			}
		}
	}

	.infobox {
		border-bottom: 1rpx solid #dcdcdc;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 25rpx;
		box-sizing: border-box;

		.jbxx {
			display: flex;

			image {
				width: 88rpx;
				height: 88rpx;
				border-radius: 88rpx;
			}

			.letfbox {
				margin-left: 32rpx;

				.name {
					font-family: MicrosoftYaHei-Bold;
					font-size: 26rpx;
					color: #222222;
					font-weight: 700;
				}

				.phone {
					font-family: MicrosoftYaHei;
					font-size: 24rpx;
					color: #222222;
					margin-top: 15rpx;
				}

				.time {
					font-family: MicrosoftYaHei;
					font-size: 24rpx;
					color: #999999;
					margin-top: 10rpx;
				}
			}
		}

		.jb {
			font-family: MicrosoftYaHei;
			font-size: 24rpx;
			color:#F74033 ;
		}
	}
</style>
